<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/util_file/common.jspf"%>
<style>
#admin_product {
	font: 12px/1.2 "돋움", dotum, bold;
}

th {
	background-color: #f1f1f1
}
</style>
<script type="text/javascript">
	$(document).ready( function(){
		
		//현재 상태 바꾸기
		$('#BtnStatusUpdate').click(function(){
			var obj = $("#frm").serialize()+"&"+$("#basket").serialize();
			alert(obj);
			$.post('/jeons/admin/transactions/ModifyAndUpdate',obj, function(data){
			alert(data);
		});
		});	
	});
</script>
<div id="admin_product">
	<fieldset class="autotab ui-widget ui-widget-content ui-corner-all">
		<input type="text" name="u_id" value="${sessionScope.u_id}" />

		<table border="0" width="400px" height="50">
			<tr>
				<td colspan="7" bgcolor="#000000" height="1"></td>
			</tr>
			<tr>
				<th>최신 정보로 바꿔주세요!</th>
				<th align="center">
					<form:form commandName="basket" id="basket">
					<form:select path="status">
						<form:option value="">선택</form:option>
						<form:options items="${code}" itemLabel="code" itemValue="value" />
					</form:select>
					</form:form>
				</th>
				<th><button type="button" id="BtnStatusUpdate">정보바꾸기</button></th>
			</tr>
			<tr>
				<td colspan="7" bgcolor="#ffffff" height="1"></td>
			</tr>
			<tr>
				<td colspan="7" bgcolor="#000000" height="1"></td>
			</tr>
		</table>
	</fieldset>
</div>	